package cn.jinjie.day03.test17;

public abstract class PhoneFactory {
    public static Phone getPhone(int n) {
        if (n == 0) {
            return new Ordinary_Phone("111","18.6");
        }
        return new Smart_Phone("222","1111");
    }

    public static Net getNet() {
        return new Smart_Phone("3333","3333");
    }
}
